package com.lanou.service;

import com.github.pagehelper.PageInfo;
import com.lanou.bean.Account;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by dllo on 18/3/13.
 */
public interface AccountService {
    List<Account> findAccountAll();
    PageInfo<Account> queryAccountByPage(Integer pageNo, Integer pageSize);
    void accountAdd(String realName, String idcardNo, String loginName, String loginPasswd, String telephone, Date createDate);
    void accountUpdate(@Param("realName") String realName, @Param("telephone") String telephone, @Param("email") String email,@Param("gender") String gender, @Param("zipcode") String zipcode, @Param("qq") String qq, @Param("accountId") Integer accountId);
    List<Account> findAccountById(Integer accountId);
    void deleteAccountAndService(Integer accountId);
    void updateStatusById(@Param("status") String status,@Param("accountId") Integer accountId);
    Account idcardNologinNameisexist(@Param("idcardNo") String idcardNo,@Param("loginName") String loginName);
}
